<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>什么是编译作用域</title>
</head>

<script src="../js/vue.js"></script>
<body>

<div id="app">
    <model v-show="isShow"></model>
</div>

</body>

<template id="model">
    <div>
        <h1>子组件标题</h1>
        <p>子组件内容</p>
    </div>
</template>

<script>
    const vue = new Vue({
        'el': '#app',
        'data': {
            isShow: true
        },
        'methods': {},
        components: {
            model: {
                template: '#model',
                data() {
                    return {
                        isShow: false
                    }
                }
            }
        }
    })
</script>
</html>